package info.u250.c2d.engine.resources.looper;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.files.FileHandle;

/**
 * @author xjjdog
 */
public class LoopLoaderGeneral extends LoopLoader {

    @Override
    public void loadResource(String dataDir) {
        FileHandle file = Gdx.files.internal(dataDir);
        if (null != file) {
            if (file.isDirectory()) {
                loadDirectory(file);
            } else {
                loadFile(file);
            }
        }
    }

}
